Value Class Definitions
This section describes the AppleScript value classes. Table 3-1 summarizes the class identifiers recognized by AppleScript.Three identifiers in Table 3-1 act only as synonyms for other value classes: Number is a synonym for either Integer or Real, Text is a synonym for String, and Styled Text is a synonym for a string that contains style and font information. You can coerce values using these synonyms, but the class of the resulting value is always the true value class.
For example, you can use the class identifier Text to coerce a date to a string:
set x to date "May 14, 1993" as text class of x --result: stringAlthough definitions for value class synonyms are included in the sections that follow, they do not correspond to separate value classes. For more information about coercing values using synonyms, see "Coercing Values," which begins on page 66.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help